package common.utils;

import android.animation.ObjectAnimator;
import android.view.View;

/**
 * Created by yinzhiqun on 2015/8/26.
 *
 */
public class AnimationUtil {

    public static void fadeIn(View v){
        ObjectAnimator.ofFloat(v,"alpha",0,1).setDuration(800).start();
    }

    public static void fadeOut(View v){
        ObjectAnimator.ofFloat(v,"alpha",1,0).setDuration(800).start();
    }

}
